<?php
$target = "upload/"; 
$target = $target . basename( $_FILES['inp_upl_img']['name']) ; 
$ok=1; 
if(move_uploaded_file($_FILES['inp_upl_img']['tmp_name'], $target)) 
{
echo "The file ". basename( $_FILES['inp_upl_img']['name']). " has been uploaded";
} 
else {
echo "Sorry, there was a problem uploading your file.";
}
?>